<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Draw Stroke</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ui-draw-color.setchannel.html">« UI\Draw\Color::setChannel</a></li>
      <li style="float: right;"><a href="ui-draw-stroke.construct.html">UI\Draw\Stroke::__construct »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.ui.html">UI</a></li>
    <li>Draw Stroke</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.ui-draw-stroke" class="reference">

 <h1 class="title">Draw Stroke</h1>
 

 <div class="partintro"><p class="verinfo">(UI 0.9.9)</p>


  <div class="section" id="ui-draw-stroke.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Holds the configuration for the Pen to perform a stroke
   </p>
  </div>


  <div class="section" id="ui-draw-stroke.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">UI\Draw\Stroke</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constructor */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.construct.html" class="methodname">__construct</a></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">int</span> <code class="parameter">$cap</code><span class="initializer"> = UI\Draw\Line\Cap::Flat</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">int</span> <code class="parameter">$join</code><span class="initializer"> = UI\Draw\Line\Join::Miter</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">float</span> <code class="parameter">$thickness</code><span class="initializer"> = 1</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">float</span> <code class="parameter">$miterLimit</code><span class="initializer"> = 10</span></span><br>)</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.getcap.html" class="methodname">getCap</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.getjoin.html" class="methodname">getJoin</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.getmiterlimit.html" class="methodname">getMiterLimit</a></span>(): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.getthickness.html" class="methodname">getThickness</a></span>(): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.setcap.html" class="methodname">setCap</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$cap</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.setjoin.html" class="methodname">setJoin</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$join</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.setmiterlimit.html" class="methodname">setMiterLimit</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$limit</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-draw-stroke.setthickness.html" class="methodname">setThickness</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$thickness</code></span>)</div>

   }</div>


  </div>

 </div>

 
































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ui-draw-stroke.construct.html">UI\Draw\Stroke::__construct</a> — Construct a new Stroke</li><li><a href="ui-draw-stroke.getcap.html">UI\Draw\Stroke::getCap</a> — Get Line Cap</li><li><a href="ui-draw-stroke.getjoin.html">UI\Draw\Stroke::getJoin</a> — Get Line Join</li><li><a href="ui-draw-stroke.getmiterlimit.html">UI\Draw\Stroke::getMiterLimit</a> — Get Miter Limit</li><li><a href="ui-draw-stroke.getthickness.html">UI\Draw\Stroke::getThickness</a> — Get Thickness</li><li><a href="ui-draw-stroke.setcap.html">UI\Draw\Stroke::setCap</a> — Set Line Cap</li><li><a href="ui-draw-stroke.setjoin.html">UI\Draw\Stroke::setJoin</a> — Set Line Join</li><li><a href="ui-draw-stroke.setmiterlimit.html">UI\Draw\Stroke::setMiterLimit</a> — Set Miter Limit</li><li><a href="ui-draw-stroke.setthickness.html">UI\Draw\Stroke::setThickness</a> — Set Thickness</li></ul>
</div>
</div></div></body></html>